<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>多功能表</title>
    <!--框架必需start-->
    <script type="text/javascript" src="../../libs/js/jquery.js"></script>
    <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
    <script type="text/javascript" src="../../libs/js/framework.js"></script>
    <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
    <link rel="stylesheet" type="text/css" id="customSkin"/>
    <!--框架必需end-->
    <!--self开始-->
    <link rel="stylesheet" href="../../assets/css/m_style.css" class="m_style">
    <!--self结束-->
</head>
<body>
<div style="line-height: 250%" class="page_content">
    <div class="mmd_con">
        <div class="mmd_top">
            <div class="mmd_t_l">
                <div class="mmd_t_list" id="xiangdianya">
                    <p>相电压（V）</p>
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Ua：</dt>
                                <dd>
                                    <span id="A相电压1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Ub：</dt>
                                <dd>
                                    <span id="B相电压1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Uc：</dt>
                                <dd>
                                    <span id="C相电压1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list" >
                    <p>线电压（V）</p>
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Uab：</dt>
                                <dd >
                                    <span id="A线电压">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Ubc：</dt>
                                <dd>
                                    <span id="B线电压">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Uca：</dt>
                                <dd>
                                    <span id="C线电压">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list" id="xiangdianlou">
                    <p>相电流（V）</p>
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Ia：</dt>
                                <dd>
                                    <span id="A相电流1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Ib：</dt>
                                <dd>
                                    <span id="B相电流1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>Ic：</dt>
                                <dd>
                                    <span id="C相电流1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="mmd_t_m">
                <div class="mmd_t_list" >
                    <p>分相有功功率</p>
                    <ul>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Pa：</dt>
                                <dd>
                                    <span id="Pa">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Pb：</dt>
                                <dd>
                                    <span id="Pb">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Pc：</dt>
                                <dd>
                                    <span id="Pc">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w42">
                            <dl>
                                <dt>系统有功功率Psum：</dt>
                                <dd>
                                    <span id="Psum">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list" >
                    <p>分相无功功率</p>
                    <ul>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Qa：</dt>
                                <dd>
                                    <span id="Qa">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Qb：</dt>
                                <dd>
                                    <span id="Qb">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Qc：</dt>
                                <dd>
                                    <span id="Qc">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w42">
                            <dl>
                                <dt>系统无功功率Qsum：</dt>
                                <dd>
                                    <span id="Qsum">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list" id="fenxiangshizaigonglv">
                    <p>分相视在功率：</p>
                    <ul>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Sa：</dt>
                                <dd>
                                    <span id="Sa">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Sb：</dt>
                                <dd>
                                    <span id="Sb">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w41">
                            <dl>
                                <dt>Sc：</dt>
                                <dd>
                                    <span id="Sc">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w42">
                            <dl>
                                <dt>系统视在功率Ssum：</dt>
                                <dd>
                                    <span id="Ssum">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="mmd_t_r">
                <div class="mmd_t_list mmd_t_list_top1">
                    <ul>
                        <li class="mmd_t_list_w2">
                            <dl>
                                <dt>分相功率因数PF1：</dt>
                                <dd >
                                    <span id="PF1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w2">
                            <dl>
                                <dt>分相功率因数PF2：</dt>
                                <dd>
                                    <span id="PF2">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list mmd_t_list_top2">
                    <ul>
                        <li class="mmd_t_list_w2">
                            <dl>
                                <dt>分相功率因数PF3：</dt>
                                <dd>
                                    <span id="PF3">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w2">
                            <dl>
                                <dt>系统功率因数PF：</dt>
                                <dd>
                                    <span id="PF">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="mmd_middle">
            <div class="mmd_m_left">
                <div class="mmd_t_list">
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>系统频率Hz：</dt>
                                <dd>
                                    <span id="系统频率">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>保留1：</dt>
                                <dd>
                                    <span id="保留1">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>保留2：</dt>
                                <dd>
                                    <span id="保留2">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list">
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>有功需量Yg：</dt>
                                <dd>
                                    <span id="有功需量"> 0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>无功需量Wg：</dt>
                                <dd>
                                    <span id="无功需量">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>视在需量Sz：</dt>
                                <dd>
                                    <span id="视在需量">0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="mmd_m_right">
                <div class="mmd_t_list">
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>三相平均相电压 Sx1：</dt>
                                <dd>
                                    <span id="三项平均相电压">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>三项平均线电压 Sx1：</dt>
                                <dd>
                                    <span id="三项平均线电压">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>温度：</dt>
                                <dd>
                                    <span id="温度"> 0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="mmd_t_list">
                    <ul>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>零序电压值U0（V）：</dt>
                                <dd>
                                    <span id="UO">0.00</span>
                                </dd>
                            </dl>
                        </li>
                        <li class="mmd_t_list_w3">
                            <dl>
                                <dt>零序电压值I0（V）：</dt>
                                <dd>
                                    <span>0.00</span>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="mmd_bottom">
            <ul class="m_mmd_bot_ul">
                <li>
                    <div class="roll_box">
                        <img src="../images/roll.png" alt="" class="roll">
                        <p class="roll_unit">V</p>
                        <p class="roll_name">A相电压</p>
                       <span class="roll_num1">0</span>
                       <span class="roll_num2">80</span>
                       <span class="roll_num3">160</span>
                       <span class="roll_num4">240</span>
                       <span class="roll_num5">320</span>
                       <span class="roll_num6">400</span>
                        <div class="needle" id="A相电压">
                            <img src="../images/needle.png" alt="">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="roll_box">
                        <img src="../images/roll.png" alt="" class="roll">
                        <p class="roll_unit">A</p>
                        <p class="roll_name">A相电流</p>
                        <span class="roll_num1">0</span>
                        <span class="roll_num2">80</span>
                        <span class="roll_num3">160</span>
                        <span class="roll_num4">240</span>
                        <span class="roll_num5">320</span>
                        <span class="roll_num6">400</span>
                        <div class="needle" id="A相电流">
                            <img src="../images/needle.png" alt="">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="roll_box">
                        <img src="../images/roll.png" alt="" class="roll">
                        <p class="roll_unit">V</p>
                        <p class="roll_name">B相电压</p>
                        <span class="roll_num1">0</span>
                        <span class="roll_num2">80</span>
                        <span class="roll_num3">160</span>
                        <span class="roll_num4">240</span>
                        <span class="roll_num5">320</span>
                        <span class="roll_num6">400</span>
                        <div class="needle" id="B相电压">
                            <img src="../images/needle.png" alt="">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="roll_box">
                        <img src="../images/roll.png" alt="" class="roll">
                        <p class="roll_unit">A</p>
                        <p class="roll_name">B相电流</p>
                        <span class="roll_num1">0</span>
                        <span class="roll_num2">80</span>
                        <span class="roll_num3">160</span>
                        <span class="roll_num4">240</span>
                        <span class="roll_num5">320</span>
                        <span class="roll_num6">400</span>
                        <div class="needle" id="B相电流">
                            <img src="../images/needle.png" alt="">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="roll_box">
                        <img src="../images/roll.png" alt="" class="roll">
                        <p class="roll_unit">V</p>
                        <p class="roll_name">C相电压</p>
                        <span class="roll_num1">0</span>
                        <span class="roll_num2">80</span>
                        <span class="roll_num3">160</span>
                        <span class="roll_num4">240</span>
                        <span class="roll_num5">320</span>
                        <span class="roll_num6">400</span>
                        <div class="needle" id="C相电压">
                            <img src="../images/needle.png" alt="">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="roll_box">
                        <img src="../images/roll.png" alt="" class="roll">
                        <p class="roll_unit">A</p>
                        <p class="roll_name">C相电流</p>
                        <span class="roll_num1">0</span>
                        <span class="roll_num2">80</span>
                        <span class="roll_num3">160</span>
                        <span class="roll_num4">240</span>
                        <span class="roll_num5">320</span>
                        <span class="roll_num6">400</span>
                        <div class="needle" id="C相电流">
                            <img src="../images/needle.png" alt="">
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<script type="application/javascript">
    //rotate(-208deg); 95deg 0-400v
    var el2=top.instance.ParamsObj;

    var neeldegExg=/^[a-z]{1}/i;
    var engIdExg=/([a-z]+\d?)$/i;
    var numExg=/^\d+\.?\d*$/;

    for (var key in el2){

        if (key =="id")
            continue;
        var value=el2[key];
        if (!numExg.test(value))
            value = 0;
          value=value.toFixed(2);

        if (neeldegExg.test(key)){
            if (key.indexOf("相")>-1) {
                $("#" + key).css("-webkit-transform", "rotate(" + (value - 208) + "deg)");
                $("#" + key + "1").html(value);
            }
            else
                $("#" + key ).html(value)

        }else if (engIdExg.test(key)){
            key = key.match(engIdExg)[1];
            $("#"+key).html(value)
        }else{
            $("#"+key).html(value)
        }

    }












</script>
</body>
</html>
